package o;

import android.content.DialogInterface;
import android.content.DialogInterface.OnKeyListener;
import android.view.KeyEvent;
import com.huawei.updatesdk.service.otaupdate.UpdateStatusCode.DialogButton;
import java.lang.ref.WeakReference;

public class bee implements OnKeyListener {
    private WeakReference<beh> ॱ;

    public bee(beh o_beh) {
        this.ॱ = new WeakReference(o_beh);
    }

    public boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
        if (i != 4) {
            return false;
        }
        beh o_beh = (beh) this.ॱ.get();
        if (o_beh != null) {
            if (o_beh.ʼ() == 1) {
                o_beh.ʻ().ˏ(DialogButton.CONFIRM);
            } else if (o_beh.ʼ() == 2) {
                o_beh.ʻ().ˏ(102);
            }
        }
        return true;
    }
}
